import { Component } from '@angular/core';
import { GlobalToolService } from '../../services/global.tool.service';

@Component({
  selector: 'app-home',
  imports: [],
  templateUrl: './home.component.html',
  styleUrl: './home.component.scss'
})
export class HomeComponent {
  constructor(
    private globalToolService: GlobalToolService,
  ) { }

  ngOnInit() {

  }

  pushNotification(message:string) {
    chrome.notifications.create('extensionId',{
      title: 'IAS Extension',
      type: 'basic',
      message: message,
      iconUrl: chrome.runtime.getURL('assets/icons/error-icon.jpg')
    })
  }

  chatAI(message:string) {
    this.globalToolService.chatAI(message);
  }

}
